package com.androwit.engine.cassandra;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class SimplePojo {
	UUID uuid;
	byte[] bytes;
	String string;
	List<SimplePojo> list = new ArrayList<SimplePojo>();

	public SimplePojo() {
	}

	public SimplePojo(byte[] bytes, String string) {
		this(UUID.randomUUID(), bytes, string);
	}

	public SimplePojo(UUID uuid, byte[] bytes, String string) {
		this.uuid = uuid;
		this.bytes = bytes;
		this.string = string;
	}

	public UUID getUuid() {
		return uuid;
	}

	public void setUuid(UUID uuid) {
		this.uuid = uuid;
	}

	public byte[] getBytes() {
		return bytes;
	}

	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}

	public String getString() {
		return string;
	}

	public void setString(String string) {
		this.string = string;
	}

	@Override
	public String toString() {
		return super.toString() + "values: string(" + string + "), uuid ("
				+ uuid + "), bytes (" + bytes + ")";
	}

	public List<SimplePojo> getList() {
		return list;
	}

	public void setList(List<SimplePojo> list) {
		this.list = list;
	}

	public void add(SimplePojo pojo) {
		list.add(pojo);
	}

}